net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Tue, 24 Oct 2017 17:57:13 +0000 (19:57 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 22 Dec 2017 14:12:23 +0000 (14:12 +0000)
commit1c2998c0740028cfa0d177d1f214007cbb0e53dd
tree53574f57c767682ae8e1ebaecdb80a07414704d6
parent3a44241658bbf556ddabd286a5c9b616e21f317b
net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs

The Allwinner H3 SoC have two distinct MDIO bus, only one could be
active at the same time.
The selection of the active MDIO bus are done via some bits in the EMAC
register of the system controller.

This patch implement this MDIO switch via a custom MDIO-mux.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Gbp-Pq: Topic features/arm/dwmac-sun8i
Gbp-Pq: Name 0001-net-stmmac-dwmac-sun8i-Handle-integrated-external-MD.patch
drivers/net/ethernet/stmicro/stmmac/Kconfig
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c